package com.ingsha.prometheus.service.impl;

import com.ingsha.prometheus.config.PrometheusStorage;
import com.ingsha.prometheus.entity.Result;
import com.ingsha.prometheus.entity.BrokerDto;
import com.ingsha.prometheus.service.PrometheusService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * @ClassName PrometheusService
 * @Description TODO
 * @Author Martin Yi
 * @Date 2023/12/19 10:47
 * @Version 1.0
 */
@RequiredArgsConstructor
@Service
public class PrometheusServiceImpl implements PrometheusService {


    private final PrometheusStorage prometheusStorage;

    @Override
    public Result updateData(BrokerDto dto) {
        prometheusStorage.updateDto(dto);
        return new Result().setCode(200);
    }
}
